package com.gxa.dr2.service;

import com.gxa.dr2.dto.LayDTO;
import com.gxa.dr2.param.MyParam;
import com.gxa.dr2.pojo.Key;
import org.apache.ibatis.annotations.Param;

public interface KeyService {
    int deleteByPrimaryKey(Integer keyId);

    int insert(Key record);

    int insertSelective(Key record);

    Key selectByPrimaryKey(Integer keyId);

    int updateByPrimaryKeySelective(Key record);

    int updateByPrimaryKey(Key record);

    /**
     * 删除选中的数据字典
     * @param ids
     * @return
     */
    int deleteByIds(Integer[] ids);

    /**
     * 获取所有数据字典
     */
    LayDTO list(@Param("param") MyParam param);
}
